import request from '@/utils/request'


//分页模糊查询
export const articlePageList=(page,limit)=>{
    return request({
        url:`/admin/healtheducation/article/findarticle/${page}/${limit}`,
        method:'get'
    })
}


export const articleList=()=>{
  return request({
      url:`/admin/healtheducation/article/findar`,
      method:'get'
  })
}



//软删除
export const Delarticle= (id) => {
  return request({
      url:`/admin/healtheducation/article/delArticle/${id}`,
      method: 'delete'
  })
}

// 添加
export const Savearticle = article => {
  return request({
    url: `/admin/healtheducation/article/save`,
    method: 'post',
    data: article,
  })
}

  // 修改信息
  export const Updatearticle = article => {
    return request({
        url: `/admin/healtheducation/article/Updatearticle`,
        method: 'put',
        data: article,
    })
  }





